home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swags_z.zip
/
TIMING.SWG
/
0012_Hi-Res Timer.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-26
|
670b
|
20 lines
{*****************************************************************************
* Function ...... Timer
* Purpose ....... Returns the number of seconds since midnight
* Parameters .... None
* Returns ....... Number of seconds since midnight to the 100th decimial place
* Notes ......... None
* Author ........ Martin Richardson
* Date .......... May 13, 1992
*****************************************************************************}
FUNCTION Timer : REAL;
VAR hour,
minute,
second,
sec100 : WORD;
BEGIN
GETTIME(hour, minute, second, sec100);
Timer := ((hour*60*60) + (minute*60) + (second) + (sec100 * 0.01))
END;